package org.skywalker.postbank

class Report {
	String name
	String type
    static constraints = {
		name(blank:false, nullable:false, maxSize:250, unique:true)
		type(blank:false, nullable:false, inList:['table', 'histogram'])
    }
	
	static hasMany = [reportElement:ReportElement]
	
	String toString(){
		name
	}
}
